package com.curry.orangelife.mobile.common.fragment;

import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import butterknife.ButterKnife;


/**
 * 基本Fragment
 * <p/>
 * Created by 吴格非 on 2015/12/3.
 */
public abstract class OrangeFragment extends Fragment {

    protected View fragmentRootView;

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
        fragmentRootView = inflateView(inflater, container, savedInstanceState);
        ButterKnife.bind(this, fragmentRootView);
        return fragmentRootView;
    }

    protected abstract View inflateView(LayoutInflater inflater,
                                        ViewGroup container, Bundle bundle);
}
